﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Quizzer.Model;

namespace Quizzer.DataAccess
{
    public static class AttemptRepository
    {
        readonly static Dictionary<Guid, Attempt> _attempts;

        static AttemptRepository()
        {
            _attempts = LoadAttempts();
        }

        static Dictionary<Guid, Attempt> LoadAttempts()
        {
            return Attempt.Items;
        }

        public static void AddAttempt(Attempt attempt)
        {
            _attempts.Add(attempt.Id, attempt);
        }
    }
}
